Package com.streamwide.smartms.lib.core.api.messaging

Types

Link copied to clipboard
annotation class AdminRole
Link copied to clipboard
annotation class AntiVirusType
Link copied to clipboard
annotation class Bearer
This annotation used when send a message and gives information if it is sent using an NFC Tag or not.
Link copied to clipboard
interface CloudServiceListener
An interface to be used by UI components(progress dialog, simple progressBar or notifications inside Activity) to listen for upload operation status
Link copied to clipboard
interface CompletionCallback : STWCallback<T>
This interface is used with the STWMessagingManager in order to delegate event when trying to send a message &attachment.
Link copied to clipboard
annotation class ConversationType
Link copied to clipboard
interface CreateConversationCallback : STWCallback<T>
This interface is used with the STWMessagingManager in order to delegate event when trying to create a new conversation.
Link copied to clipboard
annotation class DeliveryReason
Link copied to clipboard
annotation class DeliveryStatus
Link copied to clipboard
annotation class ErrorCode
Link copied to clipboard
interface IAttachmentCallback
This callback is used when trying to upload an attachment
Link copied to clipboard
interface IAttachmentLoaderCallback : STWCallback<T>
This interface is used with the STWAttachmentManager in order to delegate events related to loading attachment.
Link copied to clipboard
interface IConversationObservable
This interface is used with the STWMessagingManager in order to delegate some events/actions related to a given conversation ID to the user like :
  1. Message sending in progress (pending)
  2. Message status changed (delivery) :
    • successfully received by server (200ok)
    • failure to receive by server (for exp: 488)
    • not delivered to recipient X
    • delivered by recipient X
    • seen (read receipt) by recipient X
    • read in WebChat
    • acknowledged (OK-message) by recipient X
    • (sync) acknowledged (OK-message) by me
  3. Message successfully deleted
  4. (sync) Message deleted
  5. Message received
  6. (sync) Message received
  7. Conversation name changed
  8. Conversation Group Quit received (SWTo)
  9. (sync) Conversation Group Quit received
Link copied to clipboard
interface ILoadMessages
This interface is used with the STWMessagingManager in order to delegate events related to load messages for a given conversation.
Link copied to clipboard
interface IMessagingSettingsListener
This interface is used with the STWMessagingManager in order to delegate events related to message settings.
Link copied to clipboard
annotation class MessageType
Link copied to clipboard
open class MessagingError : Error
Link copied to clipboard
open class STWAttachmentManager
This class represent the API for all actions/event related to the attachmentThis class offers several possible operations defined in the following list :
  • Get attachment from DB
  • Register to the attachment events/action
Link copied to clipboard
interface STWAudioAttachmentListener<T : MessagingError?> : STWCallback<T>
This interface is used with STWAttachmentManagerin order to delegate events related to Audio Attachment.
Link copied to clipboard
interface STWDownloadAttachmentLocationListener
This interface is used with the STWGeolocationManager in order to delegate events related to downloading the location attachment.
Link copied to clipboard
open class STWMessagingManager
This class represent the API for all actions/event related to the messaging This class offers several possible operations defined in the following list :
  • Send message
  • Re-Send message
  • CRUD for messages in DB
  • Mark messages as read
  • Get delivery messages
This class offers also the possibility to listen for any events related to a specific conversation using registerToConversation